home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / ICPAppSource+ICprogKit / ICAppSourceKit 1.3.sit / ICAppSourceKit1.3 / ICFontWhats.p < prev    next >
MacBinary  |  1996-07-14  |  8.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ICFontWhats.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jul 14 17:10:21 1996, modified Sun Jul 14 17:10:21 1996, creator 'CWIE', type ASCII, 8289 bytes "ICFontWhats.p" , at 0x20e1 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 49 43 46 6f 6e 74 | 57 68 61 74 73 2e 70 00 |..ICFont|Whats.p.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 20 61 00 | 00 01 9a ae 0f 12 bd ae |..... a.|........|
|00000060| 0f 12 bd 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5f 9a 00 00 |........|...._...|
|00000080| 75 6e 69 74 20 49 43 46 | 6f 6e 74 57 68 61 74 73 |unit ICF|ontWhats|
|00000090| 3b 0d 0d 69 6e 74 65 72 | 66 61 63 65 0d 0d 09 75 |;..inter|face...u|
|000000a0| 73 65 73 0d 09 09 49 43 | 57 69 6e 64 6f 77 47 6c |ses...IC|WindowGl|
|000000b0| 6f 62 61 6c 73 3b 0d 0d | 09 66 75 6e 63 74 69 6f |obals;..|.functio|
|000000c0| 6e 20 57 68 61 74 4f 70 | 65 6e 46 6f 6e 74 20 28 |n WhatOp|enFont (|
|000000d0| 77 74 3a 20 57 69 6e 64 | 6f 77 54 79 70 65 3b 20 |wt: Wind|owType; |
|000000e0| 69 74 65 6d 3a 20 69 6e | 74 65 67 65 72 29 3a 20 |item: in|teger): |
|000000f0| 4f 53 45 72 72 3b 0d 09 | 66 75 6e 63 74 69 6f 6e |OSErr;..|function|
|00000100| 20 57 68 61 74 46 6c 75 | 73 68 46 6f 6e 74 20 28 | WhatFlu|shFont (|
|00000110| 77 74 3a 20 57 69 6e 64 | 6f 77 54 79 70 65 3b 20 |wt: Wind|owType; |
|00000120| 69 74 65 6d 3a 20 69 6e | 74 65 67 65 72 29 3a 20 |item: in|teger): |
|00000130| 4f 53 45 72 72 3b 0d 09 | 66 75 6e 63 74 69 6f 6e |OSErr;..|function|
|00000140| 20 57 68 61 74 43 6c 69 | 63 6b 46 6f 6e 74 20 28 | WhatCli|ckFont (|
|00000150| 77 74 3a 20 57 69 6e 64 | 6f 77 54 79 70 65 3b 20 |wt: Wind|owType; |
|00000160| 69 74 65 6d 3a 20 69 6e | 74 65 67 65 72 3b 20 65 |item: in|teger; e|
|00000170| 72 3a 20 65 76 65 6e 74 | 52 65 63 6f 72 64 29 3a |r: event|Record):|
|00000180| 20 4f 53 45 72 72 3b 0d | 09 66 75 6e 63 74 69 6f | OSErr;.|.functio|
|00000190| 6e 20 57 68 61 74 43 6c | 69 63 6b 46 6f 6e 74 53 |n WhatCl|ickFontS|
|000001a0| 69 7a 65 20 28 77 74 3a | 20 57 69 6e 64 6f 77 54 |ize (wt:| WindowT|
|000001b0| 79 70 65 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |ype; ite|m: integ|
|000001c0| 65 72 3b 20 65 72 3a 20 | 65 76 65 6e 74 52 65 63 |er; er: |eventRec|
|000001d0| 6f 72 64 29 3a 20 4f 53 | 45 72 72 3b 0d 0d 69 6d |ord): OS|Err;..im|
|000001e0| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 0d 0d 09 75 |plementa|tion...u|
|000001f0| 73 65 73 0d 09 09 53 63 | 72 69 70 74 2c 20 54 65 |ses...Sc|ript, Te|
|00000200| 78 74 55 74 69 6c 73 2c | 20 46 6f 6e 74 73 2c 20 |xtUtils,| Fonts, |
|00000210| 44 69 61 6c 6f 67 73 2c | 54 65 78 74 45 64 69 74 |Dialogs,|TextEdit|
|00000220| 2c 0d 0d 09 09 49 43 54 | 79 70 65 73 2c 20 49 43 |,....ICT|ypes, IC|
|00000230| 53 74 72 48 2c 20 0d 0d | 09 09 49 43 4b 65 79 73 |StrH, ..|..ICKeys|
|00000240| 2c 20 49 43 41 50 49 2c | 20 49 43 44 69 61 6c 6f |, ICAPI,| ICDialo|
|00000250| 67 73 2c 20 49 43 4d 69 | 73 63 53 75 62 73 2c 20 |gs, ICMi|scSubs, |
|00000260| 49 43 53 75 62 73 2c 20 | 49 43 44 6f 63 75 6d 65 |ICSubs, |ICDocume|
|00000270| 6e 74 20 7b 58 7d 2c 20 | 49 43 4d 6f 76 61 62 6c |nt {X}, |ICMovabl|
|00000280| 65 4d 6f 64 61 6c 3b 0d | 0d 09 70 72 6f 63 65 64 |eModal;.|..proced|
|00000290| 75 72 65 20 53 65 74 53 | 69 7a 65 4f 75 74 6c 69 |ure SetS|izeOutli|
|000002a0| 6e 65 73 20 28 73 69 7a | 65 6d 65 6e 75 3a 20 4d |nes (siz|emenu: M|
|000002b0| 65 6e 75 48 61 6e 64 6c | 65 3b 20 66 6f 6e 74 5f |enuHandl|e; font_|
|000002c0| 6e 75 6d 3a 20 69 6e 74 | 65 67 65 72 29 3b 0d 09 |num: int|eger);..|
|000002d0| 09 76 61 72 0d 09 09 09 | 74 6d 70 73 74 72 3a 20 |.var....|tmpstr: |
|000002e0| 53 74 72 32 35 35 3b 0d | 09 09 09 69 3a 20 69 6e |Str255;.|...i: in|
|000002f0| 74 65 67 65 72 3b 0d 09 | 09 09 74 68 65 5f 73 69 |teger;..|..the_si|
|00000300| 7a 65 3a 20 6c 6f 6e 67 | 69 6e 74 3b 0d 09 62 65 |ze: long|int;..be|
|00000310| 67 69 6e 0d 09 09 66 6f | 72 20 69 20 3a 3d 20 31 |gin...fo|r i := 1|
|00000320| 20 74 6f 20 43 6f 75 6e | 74 4d 49 74 65 6d 73 28 | to Coun|tMItems(|
|00000330| 73 69 7a 65 6d 65 6e 75 | 29 20 64 6f 20 62 65 67 |sizemenu|) do beg|
|00000340| 69 6e 0d 09 09 09 47 65 | 74 4d 65 6e 75 49 74 65 |in....Ge|tMenuIte|
|00000350| 6d 54 65 78 74 28 73 69 | 7a 65 6d 65 6e 75 2c 20 |mText(si|zemenu, |
|00000360| 69 2c 20 74 6d 70 73 74 | 72 29 3b 0d 09 09 09 53 |i, tmpst|r);....S|
|00000370| 74 72 69 6e 67 54 6f 4e | 75 6d 28 74 6d 70 73 74 |tringToN|um(tmpst|
|00000380| 72 2c 20 74 68 65 5f 73 | 69 7a 65 29 3b 0d 09 09 |r, the_s|ize);...|
|00000390| 09 69 66 20 52 65 61 6c | 46 6f 6e 74 28 66 6f 6e |.if Real|Font(fon|
|000003a0| 74 5f 6e 75 6d 2c 20 74 | 68 65 5f 73 69 7a 65 29 |t_num, t|he_size)|
|000003b0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|000003c0| 53 65 74 49 74 65 6d 53 | 74 79 6c 65 28 73 69 7a |SetItemS|tyle(siz|
|000003d0| 65 6d 65 6e 75 2c 20 69 | 2c 20 5b 6f 75 74 6c 69 |emenu, i|, [outli|
|000003e0| 6e 65 5d 29 3b 0d 09 09 | 09 65 6e 64 20 65 6c 73 |ne]);...|.end els|
|000003f0| 65 20 62 65 67 69 6e 0d | 09 09 09 09 53 65 74 49 |e begin.|....SetI|
|00000400| 74 65 6d 53 74 79 6c 65 | 28 73 69 7a 65 6d 65 6e |temStyle|(sizemen|
|00000410| 75 2c 20 69 2c 20 5b 5d | 29 3b 0d 09 09 09 65 6e |u, i, []|);....en|
|00000420| 64 3b 20 28 2a 20 69 66 | 20 2a 29 0d 09 09 65 6e |d; (* if| *)...en|
|00000430| 64 3b 20 28 2a 20 66 6f | 72 20 2a 29 0d 09 65 6e |d; (* fo|r *)..en|
|00000440| 64 3b 20 28 2a 20 53 65 | 74 53 69 7a 65 4f 75 74 |d; (* Se|tSizeOut|
|00000450| 6c 69 6e 65 73 20 2a 29 | 0d 0d 09 66 75 6e 63 74 |lines *)|...funct|
|00000460| 69 6f 6e 20 46 69 6e 64 | 4d 65 6e 75 49 74 65 6d |ion Find|MenuItem|
|00000470| 20 28 6d 68 3a 20 4d 65 | 6e 75 48 61 6e 64 6c 65 | (mh: Me|nuHandle|
|00000480| 3b 20 69 74 65 6d 3a 20 | 53 74 72 32 35 35 3b 20 |; item: |Str255; |
|00000490| 76 61 72 20 69 6e 64 65 | 78 3a 20 69 6e 74 65 67 |var inde|x: integ|
|000004a0| 65 72 29 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |er): boo|lean;...|
|000004b0| 76 61 72 0d 09 09 09 69 | 3a 20 69 6e 74 65 67 65 |var....i|: intege|
|000004c0| 72 3b 0d 09 09 09 74 65 | 73 74 5f 6e 61 6d 65 3a |r;....te|st_name:|
|000004d0| 20 53 74 72 32 35 35 3b | 0d 09 62 65 67 69 6e 0d | Str255;|..begin.|
|000004e0| 09 09 46 69 6e 64 4d 65 | 6e 75 49 74 65 6d 20 3a |..FindMe|nuItem :|
|000004f0| 3d 20 66 61 6c 73 65 3b | 0d 09 09 66 6f 72 20 69 |= false;|...for i|
|00000500| 20 3a 3d 20 31 20 74 6f | 20 43 6f 75 6e 74 4d 49 | := 1 to| CountMI|
|00000510| 74 65 6d 73 28 6d 68 29 | 20 64 6f 20 62 65 67 69 |tems(mh)| do begi|
|00000520| 6e 0d 09 09 09 47 65 74 | 4d 65 6e 75 49 74 65 6d |n....Get|MenuItem|
|00000530| 54 65 78 74 28 6d 68 2c | 20 69 2c 20 74 65 73 74 |Text(mh,| i, test|
|00000540| 5f 6e 61 6d 65 29 3b 0d | 09 09 09 69 66 20 49 55 |_name);.|...if IU|
|00000550| 45 71 75 61 6c 53 74 72 | 69 6e 67 28 74 65 73 74 |EqualStr|ing(test|
|00000560| 5f 6e 61 6d 65 2c 20 69 | 74 65 6d 29 20 3d 20 30 |_name, i|tem) = 0|
|00000570| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|00000580| 69 6e 64 65 78 20 3a 3d | 20 69 3b 0d 09 09 09 09 |index :=| i;.....|
|00000590| 46 69 6e 64 4d 65 6e 75 | 49 74 65 6d 20 3a 3d 20 |FindMenu|Item := |
|000005a0| 74 72 75 65 3b 0d 09 09 | 09 65 6e 64 3b 20 28 2a |true;...|.end; (*|
|000005b0| 20 69 66 20 2a 29 0d 09 | 09 65 6e 64 3b 20 28 2a | if *)..|.end; (*|
|000005c0| 20 66 6f 72 20 2a 29 0d | 09 65 6e 64 3b 0d 0d 09 | for *).|.end;...|
|000005d0| 66 75 6e 63 74 69 6f 6e | 20 56 61 6c 69 64 61 74 |function| Validat|
|000005e0| 65 53 69 7a 65 20 28 73 | 69 7a 65 3a 20 6c 6f 6e |eSize (s|ize: lon|
|000005f0| 67 49 6e 74 29 3a 20 6c | 6f 6e 67 49 6e 74 3b 0d |gInt): l|ongInt;.|
|00000600| 09 62 65 67 69 6e 0d 09 | 09 69 66 20 28 73 69 7a |.begin..|.if (siz|
|00000610| 65 20 3e 20 30 29 20 61 | 6e 64 20 28 73 69 7a 65 |e > 0) a|nd (size|
|00000620| 20 3c 20 33 32 37 36 37 | 29 20 74 68 65 6e 20 62 | < 32767|) then b|
|00000630| 65 67 69 6e 0d 09 09 09 | 56 61 6c 69 64 61 74 65 |egin....|Validate|
|00000640| 53 69 7a 65 20 3a 3d 20 | 73 69 7a 65 3b 0d 09 09 |Size := |size;...|
|00000650| 65 6e 64 20 65 6c 73 65 | 20 62 65 67 69 6e 0d 09 |end else| begin..|
|00000660| 09 09 56 61 6c 69 64 61 | 74 65 53 69 7a 65 20 3a |..Valida|teSize :|
|00000670| 3d 20 47 65 74 44 65 66 | 46 6f 6e 74 53 69 7a 65 |= GetDef|FontSize|
|00000680| 3b 0d 09 09 65 6e 64 3b | 20 28 2a 20 69 66 20 2a |;...end;| (* if *|
|00000690| 29 0d 09 65 6e 64 3b 0d | 0d 09 66 75 6e 63 74 69 |)..end;.|..functi|
|000006a0| 6f 6e 20 47 65 74 53 69 | 7a 65 4d 65 6e 75 56 61 |on GetSi|zeMenuVa|
|000006b0| 6c 75 65 20 28 64 6c 67 | 3a 20 44 69 61 6c 6f 67 |lue (dlg|: Dialog|
|000006c0| 50 74 72 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |Ptr; ite|m: integ|
|000006d0| 65 72 29 3a 20 6c 6f 6e | 67 49 6e 74 3b 0d 09 09 |er): lon|gInt;...|
|000006e0| 76 61 72 0d 09 09 09 74 | 6d 70 73 74 72 3a 20 53 |var....t|mpstr: S|
|000006f0| 74 72 32 35 35 3b 0d 09 | 09 09 74 6d 70 69 6e 74 |tr255;..|..tmpint|
|00000700| 3a 20 6c 6f 6e 67 69 6e | 74 3b 0d 09 09 09 73 69 |: longin|t;....si|
|00000710| 7a 65 6d 65 6e 75 3a 20 | 4d 65 6e 75 48 61 6e 64 |zemenu: |MenuHand|
|00000720| 6c 65 3b 0d 09 62 65 67 | 69 6e 0d 09 09 73 69 7a |le;..beg|in...siz|
|00000730| 65 6d 65 6e 75 20 3a 3d | 20 47 65 74 50 6f 70 75 |emenu :=| GetPopu|
|00000740| 70 4d 48 61 6e 64 6c 65 | 28 64 6c 67 2c 20 69 74 |pMHandle|(dlg, it|
|00000750| 65 6d 29 3b 0d 09 09 47 | 65 74 4d 65 6e 75 49 74 |em);...G|etMenuIt|
|00000760| 65 6d 54 65 78 74 28 73 | 69 7a 65 6d 65 6e 75 2c |emText(s|izemenu,|
|00000770| 20 47 65 74 44 43 74 6c | 56 61 6c 75 65 28 64 6c | GetDCtl|Value(dl|
|00000780| 67 2c 20 69 74 65 6d 29 | 2c 20 74 6d 70 73 74 72 |g, item)|, tmpstr|
|00000790| 29 3b 0d 09 09 53 74 72 | 69 6e 67 54 6f 4e 75 6d |);...Str|ingToNum|
|000007a0| 28 74 6d 70 73 74 72 2c | 20 74 6d 70 69 6e 74 29 |(tmpstr,| tmpint)|
|000007b0| 3b 0d 09 09 47 65 74 53 | 69 7a 65 4d 65 6e 75 56 |;...GetS|izeMenuV|
|000007c0| 61 6c 75 65 20 3a 3d 20 | 56 61 6c 69 64 61 74 65 |alue := |Validate|
|000007d0| 53 69 7a 65 28 74 6d 70 | 69 6e 74 29 3b 0d 09 65 |Size(tmp|int);..e|
|000007e0| 6e 64 3b 0d 0d 09 70 72 | 6f 63 65 64 75 72 65 20 |nd;...pr|ocedure |
|000007f0| 47 65 74 43 75 72 72 65 | 6e 74 53 65 74 74 69 6e |GetCurre|ntSettin|
|00000800| 67 20 28 64 6c 67 3a 20 | 44 69 61 6c 6f 67 50 74 |g (dlg: |DialogPt|
|00000810| 72 3b 20 69 74 65 6d 3a | 20 69 6e 74 65 67 65 72 |r; item:| integer|
|00000820| 3b 20 76 61 72 20 66 6f | 6e 74 5f 73 65 74 74 69 |; var fo|nt_setti|
|00000830| 6e 67 3a 20 49 43 46 6f | 6e 74 52 65 63 6f 72 64 |ng: ICFo|ntRecord|
|00000840| 3b 20 76 61 72 20 66 6f | 6e 74 5f 6e 75 6d 3a 20 |; var fo|nt_num: |
|00000850| 69 6e 74 65 67 65 72 29 | 3b 0d 09 62 65 67 69 6e |integer)|;..begin|
|00000860| 0d 09 09 66 6f 6e 74 5f | 73 65 74 74 69 6e 67 2e |...font_|setting.|
|00000870| 66 61 63 65 20 3a 3d 20 | 5b 5d 3b 0d 09 09 47 65 |face := |[];...Ge|
|00000880| 74 4d 65 6e 75 49 74 65 | 6d 54 65 78 74 28 47 65 |tMenuIte|mText(Ge|
|00000890| 74 50 6f 70 75 70 4d 48 | 61 6e 64 6c 65 28 64 6c |tPopupMH|andle(dl|
|000008a0| 67 2c 20 69 74 65 6d 29 | 2c 20 47 65 74 44 43 74 |g, item)|, GetDCt|
|000008b0| 6c 56 61 6c 75 65 28 64 | 6c 67 2c 20 69 74 65 6d |lValue(d|lg, item|
|000008c0| 29 2c 20 66 6f 6e 74 5f | 73 65 74 74 69 6e 67 2e |), font_|setting.|
|000008d0| 66 6f 6e 74 29 3b 0d 09 | 09 47 65 74 46 4e 75 6d |font);..|.GetFNum|
|000008e0| 28 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 2e 66 6f |(font_se|tting.fo|
|000008f0| 6e 74 2c 20 66 6f 6e 74 | 5f 6e 75 6d 29 3b 0d 09 |nt, font|_num);..|
|00000900| 09 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 2e 73 69 |.font_se|tting.si|
|00000910| 7a 65 20 3a 3d 20 47 65 | 74 53 69 7a 65 4d 65 6e |ze := Ge|tSizeMen|
|00000920| 75 56 61 6c 75 65 28 64 | 6c 67 2c 20 69 74 65 6d |uValue(d|lg, item|
|00000930| 20 2b 20 31 29 3b 0d 09 | 65 6e 64 3b 0d 0d 09 70 | + 1);..|end;...p|
|00000940| 72 6f 63 65 64 75 72 65 | 20 44 69 73 70 6c 61 79 |rocedure| Display|
|00000950| 46 6f 6e 74 50 72 6f 63 | 20 28 64 6c 67 3a 20 44 |FontProc| (dlg: D|
|00000960| 69 61 6c 6f 67 50 74 72 | 3b 20 69 74 65 6d 3a 20 |ialogPtr|; item: |
|00000970| 69 6e 74 65 67 65 72 29 | 3b 0d 09 09 76 61 72 0d |integer)|;...var.|
|00000980| 09 09 09 66 6f 6e 74 5f | 73 65 74 74 69 6e 67 3a |...font_|setting:|
|00000990| 20 49 43 46 6f 6e 74 52 | 65 63 6f 72 64 3b 0d 09 | ICFontR|ecord;..|
|000009a0| 09 09 73 61 76 65 64 3a | 20 53 61 76 65 64 57 69 |..saved:| SavedWi|
|000009b0| 6e 64 6f 77 49 6e 66 6f | 3b 0d 09 09 09 66 6f 6e |ndowInfo|;....fon|
|000009c0| 74 3a 20 69 6e 74 65 67 | 65 72 3b 0d 09 09 09 72 |t: integ|er;....r|
|000009d0| 3a 20 72 65 63 74 3b 0d | 09 09 09 73 3a 20 73 74 |: rect;.|...s: st|
|000009e0| 72 32 35 35 3b 0d 09 09 | 09 6e 61 6d 65 3a 20 53 |r255;...|.name: S|
|000009f0| 74 72 32 35 35 3b 0d 09 | 62 65 67 69 6e 0d 09 09 |tr255;..|begin...|
|00000a00| 53 65 74 50 6f 72 74 28 | 64 6c 67 29 3b 0d 09 09 |SetPort(|dlg);...|
|00000a10| 47 65 74 43 75 72 72 65 | 6e 74 53 65 74 74 69 6e |GetCurre|ntSettin|
|00000a20| 67 28 64 6c 67 2c 20 69 | 74 65 6d 20 2d 20 32 2c |g(dlg, i|tem - 2,|
|00000a30| 20 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 2c 20 66 | font_se|tting, f|
|00000a40| 6f 6e 74 29 3b 0d 09 09 | 45 6e 74 65 72 57 69 6e |ont);...|EnterWin|
|00000a50| 64 6f 77 28 64 6c 67 2c | 20 66 6f 6e 74 2c 20 66 |dow(dlg,| font, f|
|00000a60| 6f 6e 74 5f 73 65 74 74 | 69 6e 67 2e 73 69 7a 65 |ont_sett|ing.size|
|00000a70| 2c 20 5b 5d 2c 20 73 61 | 76 65 64 29 3b 0d 09 09 |, [], sa|ved);...|
|00000a80| 47 65 74 44 49 74 65 6d | 52 65 63 74 28 64 6c 67 |GetDItem|Rect(dlg|
|00000a90| 2c 20 69 74 65 6d 2c 20 | 72 29 3b 0d 09 09 50 65 |, item, |r);...Pe|
|00000aa0| 6e 50 61 74 28 71 64 2e | 67 72 61 79 29 3b 0d 09 |nPat(qd.|gray);..|
|00000ab0| 09 46 72 61 6d 65 52 65 | 63 74 28 72 29 3b 0d 09 |.FrameRe|ct(r);..|
|00000ac0| 09 50 65 6e 50 61 74 28 | 71 64 2e 62 6c 61 63 6b |.PenPat(|qd.black|
|00000ad0| 29 3b 0d 09 09 47 65 74 | 46 6f 6e 74 4e 61 6d 65 |);...Get|FontName|
|00000ae0| 28 66 6f 6e 74 2c 20 6e | 61 6d 65 29 3b 0d 09 09 |(font, n|ame);...|
|00000af0| 69 66 20 28 6e 61 6d 65 | 20 3d 20 27 43 68 69 63 |if (name| = 'Chic|
|00000b00| 61 67 6f 27 29 20 26 20 | 28 28 66 6f 6e 74 5f 73 |ago') & |((font_s|
|00000b10| 65 74 74 69 6e 67 2e 73 | 69 7a 65 20 3c 3e 20 31 |etting.s|ize <> 1|
|00000b20| 32 29 20 7c 20 28 69 74 | 65 6d 20 3d 20 39 29 29 |2) | (it|em = 9))|
|00000b30| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 73 | then be|gin....s|
|00000b40| 20 3a 3d 20 47 65 74 49 | 6e 64 53 74 72 28 31 32 | := GetI|ndStr(12|
|00000b50| 38 2c 20 31 36 29 3b 0d | 09 09 65 6e 64 20 65 6c |8, 16);.|..end el|
|00000b60| 73 65 20 62 65 67 69 6e | 0d 09 09 09 73 20 3a 3d |se begin|....s :=|
|00000b70| 20 47 65 74 49 6e 64 53 | 74 72 28 31 32 38 2c 20 | GetIndS|tr(128, |
|00000b80| 31 34 29 3b 0d 09 09 65 | 6e 64 3b 20 28 2a 20 69 |14);...e|nd; (* i|
|00000b90| 66 20 2a 29 0d 09 09 49 | 6e 73 65 74 52 65 63 74 |f *)...I|nsetRect|
|00000ba0| 28 72 2c 20 33 2c 20 33 | 29 3b 0d 09 09 54 45 54 |(r, 3, 3|);...TET|
|00000bb0| 65 78 74 42 6f 78 28 40 | 73 5b 31 5d 2c 20 6c 65 |extBox(@|s[1], le|
|00000bc0| 6e 67 74 68 28 73 29 2c | 20 72 2c 20 74 65 4a 75 |ngth(s),| r, teJu|
|00000bd0| 73 74 4c 65 66 74 29 3b | 0d 09 09 45 78 69 74 57 |stLeft);|...ExitW|
|00000be0| 69 6e 64 6f 77 28 73 61 | 76 65 64 29 3b 0d 09 65 |indow(sa|ved);..e|
|00000bf0| 6e 64 3b 0d 0d 09 66 75 | 6e 63 74 69 6f 6e 20 57 |nd;...fu|nction W|
|00000c00| 68 61 74 4f 70 65 6e 46 | 6f 6e 74 20 28 77 74 3a |hatOpenF|ont (wt:|
|00000c10| 20 57 69 6e 64 6f 77 54 | 79 70 65 3b 20 69 74 65 | WindowT|ype; ite|
|00000c20| 6d 3a 20 69 6e 74 65 67 | 65 72 29 3a 20 4f 53 45 |m: integ|er): OSE|
|00000c30| 72 72 3b 0d 09 09 76 61 | 72 0d 09 09 09 64 6c 67 |rr;...va|r....dlg|
|00000c40| 3a 20 57 69 6e 64 6f 77 | 50 74 72 3b 0d 09 09 09 |: Window|Ptr;....|
|00000c50| 66 6f 6e 74 6d 65 6e 75 | 3a 20 4d 65 6e 75 48 61 |fontmenu|: MenuHa|
|00000c60| 6e 64 6c 65 3b 0d 09 09 | 09 73 69 7a 65 6d 65 6e |ndle;...|.sizemen|
|00000c70| 75 3a 20 4d 65 6e 75 48 | 61 6e 64 6c 65 3b 0d 09 |u: MenuH|andle;..|
|00000c80| 09 09 66 6f 6e 74 5f 73 | 65 74 74 69 6e 67 3a 20 |..font_s|etting: |
|00000c90| 49 43 46 6f 6e 74 52 65 | 63 6f 72 64 3b 0d 09 09 |ICFontRe|cord;...|
|00000ca0| 09 61 74 74 72 3a 20 6c | 6f 6e 67 69 6e 74 3b 0d |.attr: l|ongint;.|
|00000cb0| 09 09 09 69 3a 20 69 6e | 74 65 67 65 72 3b 0d 09 |...i: in|teger;..|
|00000cc0| 09 09 63 6f 75 6e 74 3a | 20 6c 6f 6e 67 69 6e 74 |..count:| longint|
|00000cd0| 3b 0d 09 09 09 66 6f 6e | 74 5f 6e 75 6d 3a 20 69 |;....fon|t_num: i|
|00000ce0| 6e 74 65 67 65 72 3b 0d | 09 62 65 67 69 6e 0d 09 |nteger;.|.begin..|
|00000cf0| 09 64 6c 67 20 3a 3d 20 | 77 69 6e 64 6f 77 69 6e |.dlg := |windowin|
|00000d00| 66 6f 5b 77 74 5d 2e 77 | 69 6e 64 6f 77 3b 0d 09 |fo[wt].w|indow;..|
|00000d10| 09 66 6f 6e 74 6d 65 6e | 75 20 3a 3d 20 47 65 74 |.fontmen|u := Get|
|00000d20| 50 6f 70 75 70 4d 48 61 | 6e 64 6c 65 28 64 6c 67 |PopupMHa|ndle(dlg|
|00000d30| 2c 20 69 74 65 6d 29 3b | 0d 09 09 63 6f 75 6e 74 |, item);|...count|
|00000d40| 20 3a 3d 20 73 69 7a 65 | 6f 66 28 66 6f 6e 74 5f | := size|of(font_|
|00000d50| 73 65 74 74 69 6e 67 29 | 3b 0d 09 09 69 66 20 28 |setting)|;...if (|
|00000d60| 49 43 4d 61 70 45 72 72 | 28 49 43 47 65 74 50 72 |ICMapErr|(ICGetPr|
|00000d70| 65 66 28 47 65 74 49 6e | 73 74 61 6e 63 65 2c 20 |ef(GetIn|stance, |
|00000d80| 77 69 6e 64 6f 77 69 6e | 66 6f 5b 77 74 5d 2e 69 |windowin|fo[wt].i|
|00000d90| 74 65 6d 73 5b 69 74 65 | 6d 5d 5e 2e 6b 65 79 2c |tems[ite|m]^.key,|
|00000da0| 20 61 74 74 72 2c 20 40 | 66 6f 6e 74 5f 73 65 74 | attr, @|font_set|
|00000db0| 74 69 6e 67 2c 20 63 6f | 75 6e 74 29 29 20 3c 3e |ting, co|unt)) <>|
|00000dc0| 20 6e 6f 45 72 72 29 20 | 7c 20 28 63 6f 75 6e 74 | noErr) || (count|
|00000dd0| 20 3c 3e 20 73 69 7a 65 | 6f 66 28 66 6f 6e 74 5f | <> size|of(font_|
|00000de0| 73 65 74 74 69 6e 67 29 | 29 20 74 68 65 6e 20 62 |setting)|) then b|
|00000df0| 65 67 69 6e 0d 09 09 09 | 47 65 74 46 6f 6e 74 4e |egin....|GetFontN|
|00000e00| 61 6d 65 28 47 65 74 41 | 70 70 46 6f 6e 74 2c 20 |ame(GetA|ppFont, |
|00000e10| 66 6f 6e 74 5f 73 65 74 | 74 69 6e 67 2e 66 6f 6e |font_set|ting.fon|
|00000e20| 74 29 3b 0d 09 09 09 66 | 6f 6e 74 5f 73 65 74 74 |t);....f|ont_sett|
|00000e30| 69 6e 67 2e 66 61 63 65 | 20 3a 3d 20 5b 5d 3b 0d |ing.face| := [];.|
|00000e40| 09 09 09 66 6f 6e 74 5f | 73 65 74 74 69 6e 67 2e |...font_|setting.|
|00000e50| 73 69 7a 65 20 3a 3d 20 | 47 65 74 44 65 66 46 6f |size := |GetDefFo|
|00000e60| 6e 74 53 69 7a 65 3b 0d | 09 09 65 6e 64 3b 20 28 |ntSize;.|..end; (|
|00000e70| 2a 20 69 66 20 2a 29 0d | 09 09 50 72 6f 63 65 73 |* if *).|..Proces|
|00000e80| 73 41 74 74 72 69 62 75 | 74 65 73 28 77 74 2c 20 |sAttribu|tes(wt, |
|00000e90| 69 74 65 6d 2c 20 61 74 | 74 72 29 3b 0d 09 09 47 |item, at|tr);...G|
|00000ea0| 65 74 46 4e 75 6d 28 66 | 6f 6e 74 5f 73 65 74 74 |etFNum(f|ont_sett|
|00000eb0| 69 6e 67 2e 66 6f 6e 74 | 2c 20 66 6f 6e 74 5f 6e |ing.font|, font_n|
|00000ec0| 75 6d 29 3b 0d 09 09 69 | 66 20 66 6f 6e 74 5f 6e |um);...i|f font_n|
|00000ed0| 75 6d 20 3d 20 30 20 74 | 68 65 6e 20 62 65 67 69 |um = 0 t|hen begi|
|00000ee0| 6e 0d 09 09 09 47 65 74 | 46 6f 6e 74 4e 61 6d 65 |n....Get|FontName|
|00000ef0| 28 47 65 74 41 70 70 46 | 6f 6e 74 2c 20 66 6f 6e |(GetAppF|ont, fon|
|00000f00| 74 5f 73 65 74 74 69 6e | 67 2e 66 6f 6e 74 29 3b |t_settin|g.font);|
|00000f10| 0d 09 09 09 47 65 74 46 | 4e 75 6d 28 66 6f 6e 74 |....GetF|Num(font|
|00000f20| 5f 73 65 74 74 69 6e 67 | 2e 66 6f 6e 74 2c 20 66 |_setting|.font, f|
|00000f30| 6f 6e 74 5f 6e 75 6d 29 | 3b 0d 09 09 65 6e 64 3b |ont_num)|;...end;|
|00000f40| 20 28 2a 20 69 66 20 2a | 29 0d 09 09 69 66 20 46 | (* if *|)...if F|
|00000f50| 69 6e 64 4d 65 6e 75 49 | 74 65 6d 28 66 6f 6e 74 |indMenuI|tem(font|
|00000f60| 6d 65 6e 75 2c 20 66 6f | 6e 74 5f 73 65 74 74 69 |menu, fo|nt_setti|
|00000f70| 6e 67 2e 66 6f 6e 74 2c | 20 69 29 20 74 68 65 6e |ng.font,| i) then|
|00000f80| 20 62 65 67 69 6e 0d 09 | 09 09 53 65 74 44 43 74 | begin..|..SetDCt|
|00000f90| 6c 56 61 6c 75 65 28 64 | 6c 67 2c 20 69 74 65 6d |lValue(d|lg, item|
|00000fa0| 2c 20 69 29 3b 0d 09 09 | 65 6e 64 3b 0d 09 09 73 |, i);...|end;...s|
|00000fb0| 69 7a 65 6d 65 6e 75 20 | 3a 3d 20 47 65 74 50 6f |izemenu |:= GetPo|
|00000fc0| 70 75 70 4d 48 61 6e 64 | 6c 65 28 64 6c 67 2c 20 |pupMHand|le(dlg, |
|00000fd0| 69 74 65 6d 20 2b 20 31 | 29 3b 0d 09 09 69 66 20 |item + 1|);...if |
|00000fe0| 46 69 6e 64 4d 65 6e 75 | 49 74 65 6d 28 73 69 7a |FindMenu|Item(siz|
|00000ff0| 65 6d 65 6e 75 2c 20 44 | 65 63 53 74 72 28 66 6f |emenu, D|ecStr(fo|
|00001000| 6e 74 5f 73 65 74 74 69 | 6e 67 2e 73 69 7a 65 29 |nt_setti|ng.size)|
|00001010| 2c 20 69 29 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |, i) the|n begin.|
|00001020| 09 09 09 53 65 74 44 43 | 74 6c 56 61 6c 75 65 28 |...SetDC|tlValue(|
|00001030| 64 6c 67 2c 20 69 74 65 | 6d 20 2b 20 31 2c 20 69 |dlg, ite|m + 1, i|
|00001040| 29 3b 0d 09 09 65 6e 64 | 3b 0d 09 09 77 69 6e 64 |);...end|;...wind|
|00001050| 6f 77 69 6e 66 6f 5b 77 | 74 5d 2e 69 74 65 6d 73 |owinfo[w|t].items|
|00001060| 5b 69 74 65 6d 20 2b 20 | 31 5d 5e 2e 73 70 61 72 |[item + |1]^.spar|
|00001070| 65 5f 64 61 74 61 20 3a | 3d 20 70 74 72 28 6c 6f |e_data :|= ptr(lo|
|00001080| 6e 67 49 6e 74 28 66 6f | 6e 74 5f 73 65 74 74 69 |ngInt(fo|nt_setti|
|00001090| 6e 67 2e 73 69 7a 65 29 | 29 3b 0d 09 09 53 65 74 |ng.size)|);...Set|
|000010a0| 53 69 7a 65 4f 75 74 6c | 69 6e 65 73 28 73 69 7a |SizeOutl|ines(siz|
|000010b0| 65 6d 65 6e 75 2c 20 66 | 6f 6e 74 5f 6e 75 6d 29 |emenu, f|ont_num)|
|000010c0| 3b 0d 09 09 53 65 74 44 | 43 74 6c 45 6e 61 62 6c |;...SetD|CtlEnabl|
|000010d0| 65 28 64 6c 67 2c 20 69 | 74 65 6d 2c 20 6e 6f 74 |e(dlg, i|tem, not|
|000010e0| 20 49 73 4c 6f 63 6b 65 | 64 28 77 74 2c 20 69 74 | IsLocke|d(wt, it|
|000010f0| 65 6d 29 29 3b 0d 09 09 | 53 65 74 44 43 74 6c 45 |em));...|SetDCtlE|
|00001100| 6e 61 62 6c 65 28 64 6c | 67 2c 20 69 74 65 6d 20 |nable(dl|g, item |
|00001110| 2b 20 31 2c 20 6e 6f 74 | 20 49 73 4c 6f 63 6b 65 |+ 1, not| IsLocke|
|00001120| 64 28 77 74 2c 20 69 74 | 65 6d 29 29 3b 0d 09 09 |d(wt, it|em));...|
|00001130| 53 65 74 44 49 74 65 6d | 48 61 6e 64 6c 65 28 64 |SetDItem|Handle(d|
|00001140| 6c 67 2c 20 69 74 65 6d | 20 2b 20 32 2c 20 68 61 |lg, item| + 2, ha|
|00001150| 6e 64 6c 65 28 40 44 69 | 73 70 6c 61 79 46 6f 6e |ndle(@Di|splayFon|
|00001160| 74 50 72 6f 63 29 29 3b | 0d 09 09 57 68 61 74 4f |tProc));|...WhatO|
|00001170| 70 65 6e 46 6f 6e 74 20 | 3a 3d 20 6e 6f 45 72 72 |penFont |:= noErr|
|00001180| 3b 0d 09 65 6e 64 3b 20 | 28 2a 20 57 68 61 74 4f |;..end; |(* WhatO|
|00001190| 70 65 6e 46 6f 6e 74 20 | 2a 29 0d 0d 09 66 75 6e |penFont |*)...fun|
|000011a0| 63 74 69 6f 6e 20 57 68 | 61 74 43 6c 69 63 6b 46 |ction Wh|atClickF|
|000011b0| 6f 6e 74 20 28 77 74 3a | 20 57 69 6e 64 6f 77 54 |ont (wt:| WindowT|
|000011c0| 79 70 65 3b 20 69 74 65 | 6d 3a 20 69 6e 74 65 67 |ype; ite|m: integ|
|000011d0| 65 72 3b 20 65 72 3a 20 | 65 76 65 6e 74 52 65 63 |er; er: |eventRec|
|000011e0| 6f 72 64 29 3a 20 4f 53 | 45 72 72 3b 0d 09 09 76 |ord): OS|Err;...v|
|000011f0| 61 72 0d 09 09 09 64 6c | 67 3a 20 44 69 61 6c 6f |ar....dl|g: Dialo|
|00001200| 67 50 74 72 3b 0d 09 09 | 09 66 6f 6e 74 5f 73 65 |gPtr;...|.font_se|
|00001210| 74 74 69 6e 67 3a 20 49 | 43 46 6f 6e 74 52 65 63 |tting: I|CFontRec|
|00001220| 6f 72 64 3b 0d 09 09 09 | 66 6f 6e 74 5f 6e 75 6d |ord;....|font_num|
|00001230| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 09 62 65 67 69 |: intege|r;..begi|
|00001240| 6e 0d 09 09 65 72 20 3a | 3d 20 65 72 3b 20 7b 20 |n...er :|= er; { |
|00001250| 55 6e 75 73 65 64 20 7d | 0d 09 09 64 6c 67 20 3a |Unused }|...dlg :|
|00001260| 3d 20 77 69 6e 64 6f 77 | 69 6e 66 6f 5b 77 74 5d |= window|info[wt]|
|00001270| 2e 77 69 6e 64 6f 77 3b | 0d 09 09 47 65 74 43 75 |.window;|...GetCu|
|00001280| 72 72 65 6e 74 53 65 74 | 74 69 6e 67 28 64 6c 67 |rrentSet|ting(dlg|
|00001290| 2c 20 69 74 65 6d 2c 20 | 66 6f 6e 74 5f 73 65 74 |, item, |font_set|
|000012a0| 74 69 6e 67 2c 20 66 6f | 6e 74 5f 6e 75 6d 29 3b |ting, fo|nt_num);|
|000012b0| 0d 09 09 53 65 74 53 69 | 7a 65 4f 75 74 6c 69 6e |...SetSi|zeOutlin|
|000012c0| 65 73 28 47 65 74 50 6f | 70 75 70 4d 48 61 6e 64 |es(GetPo|pupMHand|
|000012d0| 6c 65 28 64 6c 67 2c 20 | 69 74 65 6d 20 2b 20 31 |le(dlg, |item + 1|
|000012e0| 29 2c 20 66 6f 6e 74 5f | 6e 75 6d 29 3b 0d 09 09 |), font_|num);...|
|000012f0| 44 69 73 70 6c 61 79 46 | 6f 6e 74 50 72 6f 63 28 |DisplayF|ontProc(|
|00001300| 64 6c 67 2c 20 69 74 65 | 6d 20 2b 20 32 29 3b 0d |dlg, ite|m + 2);.|
|00001310| 09 09 57 68 61 74 43 6c | 69 63 6b 46 6f 6e 74 20 |..WhatCl|ickFont |
|00001320| 3a 3d 20 6e 6f 45 72 72 | 3b 0d 09 65 6e 64 3b 20 |:= noErr|;..end; |
|00001330| 20 28 2a 20 57 68 61 74 | 43 6c 69 63 6b 46 6f 6e | (* What|ClickFon|
|00001340| 74 20 2a 29 0d 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |t *)...f|unction |
|00001350| 4d 79 4d 6f 64 61 6c 46 | 69 6c 74 65 72 20 28 64 |MyModalF|ilter (d|
|00001360| 6c 67 3a 20 44 69 61 6c | 6f 67 50 74 72 3b 20 76 |lg: Dial|ogPtr; v|
|00001370| 61 72 20 65 72 3a 20 45 | 76 65 6e 74 52 65 63 6f |ar er: E|ventReco|
|00001380| 72 64 3b 20 76 61 72 20 | 69 74 65 6d 3a 20 69 6e |rd; var |item: in|
|00001390| 74 65 67 65 72 29 3a 20 | 62 6f 6f 6c 65 61 6e 3b |teger): |boolean;|
|000013a0| 0d 09 09 63 6f 6e 73 74 | 0d 09 09 09 62 73 20 3d |...const|....bs =|
|000013b0| 20 63 68 72 28 38 29 3b | 0d 09 09 76 61 72 0d 09 | chr(8);|...var..|
|000013c0| 09 09 63 68 3a 20 63 68 | 61 72 3b 0d 09 62 65 67 |..ch: ch|ar;..beg|
|000013d0| 69 6e 0d 09 09 4d 79 4d | 6f 64 61 6c 46 69 6c 74 |in...MyM|odalFilt|
|000013e0| 65 72 20 3a 3d 20 66 61 | 6c 73 65 3b 0d 09 09 69 |er := fa|lse;...i|
|000013f0| 66 20 43 61 6e 63 65 6c | 4d 6f 64 61 6c 46 69 6c |f Cancel|ModalFil|
|00001400| 74 65 72 28 64 6c 67 2c | 20 65 72 2c 20 69 74 65 |ter(dlg,| er, ite|
|00001410| 6d 29 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |m) then |begin...|
|00001420| 09 4d 79 4d 6f 64 61 6c | 46 69 6c 74 65 72 20 3a |.MyModal|Filter :|
|00001430| 3d 20 74 72 75 65 3b 0d | 09 09 65 6e 64 20 65 6c |= true;.|..end el|
|00001440| 73 65 20 69 66 20 28 65 | 72 2e 77 68 61 74 20 3d |se if (e|r.what =|
|00001450| 20 6b 65 79 44 6f 77 6e | 29 20 6f 72 20 28 65 72 | keyDown|) or (er|
|00001460| 2e 77 68 61 74 20 3d 20 | 61 75 74 6f 4b 65 79 29 |.what = |autoKey)|
|00001470| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 69 | then be|gin....i|
|00001480| 66 20 42 41 4e 44 28 65 | 72 2e 6d 6f 64 69 66 69 |f BAND(e|r.modifi|
|00001490| 65 72 73 2c 20 63 6d 64 | 4b 65 79 29 20 3d 20 30 |ers, cmd|Key) = 0|
|000014a0| 20 74 68 65 6e 20 62 65 | 67 69 6e 0d 09 09 09 09 | then be|gin.....|
|000014b0| 63 68 20 3a 3d 20 63 68 | 72 28 42 41 4e 44 28 65 |ch := ch|r(BAND(e|
|000014c0| 72 2e 6d 65 73 73 61 67 | 65 2c 20 24 46 46 29 29 |r.messag|e, $FF))|
|000014d0| 3b 0d 09 09 09 09 69 66 | 20 44 69 72 74 79 4b 65 |;.....if| DirtyKe|
|000014e0| 79 28 63 68 29 20 26 20 | 6e 6f 74 20 28 63 68 20 |y(ch) & |not (ch |
|000014f0| 69 6e 20 5b 62 73 2c 20 | 27 30 27 2e 2e 27 39 27 |in [bs, |'0'..'9'|
|00001500| 5d 29 20 74 68 65 6e 20 | 62 65 67 69 6e 0d 09 09 |]) then |begin...|
|00001510| 09 09 09 53 79 73 42 65 | 65 70 28 31 29 3b 0d 09 |...SysBe|ep(1);..|
|00001520| 09 09 09 09 65 72 2e 77 | 68 61 74 20 3a 3d 20 6e |....er.w|hat := n|
|00001530| 75 6c 6c 45 76 65 6e 74 | 3b 0d 09 09 09 09 65 6e |ullEvent|;.....en|
|00001540| 64 3b 0d 09 09 09 65 6e | 64 3b 0d 09 09 65 6e 64 |d;....en|d;...end|
|00001550| 3b 0d 09 65 6e 64 3b 0d | 0d 09 66 75 6e 63 74 69 |;..end;.|..functi|
|00001560| 6f 6e 20 47 65 74 4f 74 | 68 65 72 53 69 7a 65 20 |on GetOt|herSize |
|00001570| 28 76 61 72 20 73 69 7a | 65 3a 20 6c 6f 6e 67 49 |(var siz|e: longI|
|00001580| 6e 74 29 3a 20 62 6f 6f | 6c 65 61 6e 3b 0d 09 09 |nt): boo|lean;...|
|00001590| 76 61 72 0d 09 09 09 64 | 6c 67 3a 20 44 69 61 6c |var....d|lg: Dial|
|000015a0| 6f 67 50 74 72 3b 0d 09 | 09 09 69 74 65 6d 3a 20 |ogPtr;..|..item: |
|000015b0| 69 6e 74 65 67 65 72 3b | 0d 09 09 09 73 3a 20 53 |integer;|....s: S|
|000015c0| 74 72 32 35 35 3b 0d 09 | 09 09 73 61 76 65 64 5f |tr255;..|..saved_|
|000015d0| 73 74 61 74 65 3a 20 50 | 74 72 3b 0d 09 62 65 67 |state: P|tr;..beg|
|000015e0| 69 6e 0d 09 09 64 6c 67 | 20 3a 3d 20 47 65 74 4e |in...dlg| := GetN|
|000015f0| 65 77 44 69 61 6c 6f 67 | 28 37 30 30 2c 20 6e 69 |ewDialog|(700, ni|
|00001600| 6c 2c 20 50 4f 49 4e 54 | 45 52 28 2d 31 29 29 3b |l, POINT|ER(-1));|
|00001610| 0d 09 09 53 65 74 49 74 | 65 6d 54 65 78 74 28 64 |...SetIt|emText(d|
|00001620| 6c 67 2c 20 34 2c 20 44 | 65 63 53 74 72 28 73 69 |lg, 4, D|ecStr(si|
|00001630| 7a 65 29 29 3b 0d 09 09 | 53 65 6c 65 63 74 44 69 |ze));...|SelectDi|
|00001640| 61 6c 6f 67 49 74 65 6d | 54 65 78 74 28 64 6c 67 |alogItem|Text(dlg|
|00001650| 2c 20 34 2c 20 30 2c 20 | 32 35 35 29 3b 0d 09 09 |, 4, 0, |255);...|
|00001660| 53 65 74 55 70 44 65 66 | 61 75 6c 74 4f 75 74 6c |SetUpDef|aultOutl|
|00001670| 69 6e 65 28 64 6c 67 2c | 20 31 2c 20 33 29 3b 0d |ine(dlg,| 1, 3);.|
|00001680| 09 09 53 68 6f 77 57 69 | 6e 64 6f 77 28 64 6c 67 |..ShowWi|ndow(dlg|
|00001690| 29 3b 0d 09 09 44 69 73 | 61 62 6c 65 4d 65 6e 75 |);...Dis|ableMenu|
|000016a0| 42 61 72 28 73 61 76 65 | 64 5f 73 74 61 74 65 2c |Bar(save|d_state,|
|000016b0| 20 2d 31 29 3b 0d 09 09 | 49 6e 69 74 43 75 72 73 | -1);...|InitCurs|
|000016c0| 6f 72 3b 0d 09 09 72 65 | 70 65 61 74 0d 09 09 09 |or;...re|peat....|
|000016d0| 4d 6f 76 61 62 6c 65 4d | 6f 64 61 6c 44 69 61 6c |MovableM|odalDial|
|000016e0| 6f 67 28 40 4d 79 4d 6f | 64 61 6c 46 69 6c 74 65 |og(@MyMo|dalFilte|
|000016f0| 72 2c 20 69 74 65 6d 29 | 3b 0d 09 09 75 6e 74 69 |r, item)|;...unti|
|00001700| 6c 20 69 74 65 6d 20 69 | 6e 20 5b 31 2c 20 32 5d |l item i|n [1, 2]|
|00001710| 3b 0d 09 09 47 65 74 4f | 74 68 65 72 53 69 7a 65 |;...GetO|therSize|
|00001720| 20 3a 3d 20 69 74 65 6d | 20 3d 20 31 3b 0d 09 09 | := item| = 1;...|
|00001730| 69 66 20 69 74 65 6d 20 | 3d 20 31 20 74 68 65 6e |if item |= 1 then|
|00001740| 20 62 65 67 69 6e 0d 09 | 09 09 47 65 74 49 74 65 | begin..|..GetIte|
|00001750| 6d 54 65 78 74 28 64 6c | 67 2c 20 34 2c 20 73 29 |mText(dl|g, 4, s)|
|00001760| 3b 0d 09 09 09 53 74 72 | 69 6e 67 54 6f 4e 75 6d |;....Str|ingToNum|
|00001770| 28 73 2c 20 73 69 7a 65 | 29 3b 0d 09 09 09 73 69 |(s, size|);....si|
|00001780| 7a 65 20 3a 3d 20 56 61 | 6c 69 64 61 74 65 53 69 |ze := Va|lidateSi|
|00001790| 7a 65 28 73 69 7a 65 29 | 3b 0d 09 09 65 6e 64 3b |ze(size)|;...end;|
|000017a0| 0d 09 09 52 65 45 6e 61 | 62 6c 65 4d 65 6e 75 42 |...ReEna|bleMenuB|
|000017b0| 61 72 28 73 61 76 65 64 | 5f 73 74 61 74 65 29 3b |ar(saved|_state);|
|000017c0| 0d 09 09 44 69 73 70 6f | 73 65 44 69 61 6c 6f 67 |...Dispo|seDialog|
|000017d0| 28 64 6c 67 29 3b 0d 09 | 65 6e 64 3b 0d 0d 09 66 |(dlg);..|end;...f|
|000017e0| 75 6e 63 74 69 6f 6e 20 | 57 68 61 74 43 6c 69 63 |unction |WhatClic|
|000017f0| 6b 46 6f 6e 74 53 69 7a | 65 20 28 77 74 3a 20 57 |kFontSiz|e (wt: W|
|00001800| 69 6e 64 6f 77 54 79 70 | 65 3b 20 69 74 65 6d 3a |indowTyp|e; item:|
|00001810| 20 69 6e 74 65 67 65 72 | 3b 20 65 72 3a 20 65 76 | integer|; er: ev|
|00001820| 65 6e 74 52 65 63 6f 72 | 64 29 3a 20 4f 53 45 72 |entRecor|d): OSEr|
|00001830| 72 3b 0d 09 09 76 61 72 | 0d 09 09 09 64 6c 67 3a |r;...var|....dlg:|
|00001840| 20 44 69 61 6c 6f 67 50 | 74 72 3b 0d 09 09 09 63 | DialogP|tr;....c|
|00001850| 6f 6e 74 72 6f 6c 3a 20 | 43 6f 6e 74 72 6f 6c 48 |ontrol: |ControlH|
|00001860| 61 6e 64 6c 65 3b 0d 09 | 09 09 73 69 7a 65 6d 65 |andle;..|..sizeme|
|00001870| 6e 75 3a 20 4d 65 6e 75 | 48 61 6e 64 6c 65 3b 0d |nu: Menu|Handle;.|
|00001880| 09 09 09 6e 3a 20 6c 6f | 6e 67 49 6e 74 3b 0d 09 |...n: lo|ngInt;..|
|00001890| 09 09 74 6d 70 73 74 72 | 3a 20 53 74 72 32 35 35 |..tmpstr|: Str255|
|000018a0| 3b 0d 09 09 09 69 3a 20 | 69 6e 74 65 67 65 72 3b |;....i: |integer;|
|000018b0| 0d 09 09 09 64 75 6d 6d | 79 3a 20 62 6f 6f 6c 65 |....dumm|y: boole|
|000018c0| 61 6e 3b 0d 09 62 65 67 | 69 6e 0d 09 09 65 72 20 |an;..beg|in...er |
|000018d0| 3a 3d 20 65 72 3b 20 7b | 20 55 6e 75 73 65 64 20 |:= er; {| Unused |
|000018e0| 7d 0d 09 09 64 6c 67 20 | 3a 3d 20 77 69 6e 64 6f |}...dlg |:= windo|
|000018f0| 77 69 6e 66 6f 5b 77 74 | 5d 2e 77 69 6e 64 6f 77 |winfo[wt|].window|
|00001900| 3b 0d 09 09 63 6f 6e 74 | 72 6f 6c 20 3a 3d 20 47 |;...cont|rol := G|
|00001910| 65 74 44 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |etDContr|olHandle|
|00001920| 28 64 6c 67 2c 20 69 74 | 65 6d 29 3b 0d 09 09 73 |(dlg, it|em);...s|
|00001930| 69 7a 65 6d 65 6e 75 20 | 3a 3d 20 47 65 74 50 6f |izemenu |:= GetPo|
|00001940| 70 75 70 4d 48 61 6e 64 | 6c 65 28 64 6c 67 2c 20 |pupMHand|le(dlg, |
|00001950| 69 74 65 6d 29 3b 0d 09 | 09 69 66 20 47 65 74 43 |item);..|.if GetC|
|00001960| 6f 6e 74 72 6f 6c 56 61 | 6c 75 65 28 63 6f 6e 74 |ontrolVa|lue(cont|
|00001970| 72 6f 6c 29 20 3d 20 43 | 6f 75 6e 74 4d 49 74 65 |rol) = C|ountMIte|
|00001980| 6d 73 28 73 69 7a 65 6d | 65 6e 75 29 20 74 68 65 |ms(sizem|enu) the|
|00001990| 6e 20 62 65 67 69 6e 0d | 09 09 09 6e 20 3a 3d 20 |n begin.|...n := |
|000019a0| 6f 72 64 28 77 69 6e 64 | 6f 77 69 6e 66 6f 5b 77 |ord(wind|owinfo[w|
|000019b0| 74 5d 2e 69 74 65 6d 73 | 5b 69 74 65 6d 5d 5e 2e |t].items|[item]^.|
|000019c0| 73 70 61 72 65 5f 64 61 | 74 61 29 3b 0d 09 09 09 |spare_da|ta);....|
|000019d0| 64 75 6d 6d 79 20 3a 3d | 20 47 65 74 4f 74 68 65 |dummy :=| GetOthe|
|000019e0| 72 53 69 7a 65 28 6e 29 | 3b 0d 09 09 65 6e 64 20 |rSize(n)|;...end |
|000019f0| 65 6c 73 65 20 62 65 67 | 69 6e 0d 09 09 09 6e 20 |else beg|in....n |
|00001a00| 3a 3d 20 47 65 74 53 69 | 7a 65 4d 65 6e 75 56 61 |:= GetSi|zeMenuVa|
|00001a10| 6c 75 65 28 64 6c 67 2c | 20 69 74 65 6d 29 3b 0d |lue(dlg,| item);.|
|00001a20| 09 09 65 6e 64 3b 0d 09 | 09 69 66 20 6e 6f 74 20 |..end;..|.if not |
|00001a30| 54 50 62 74 73 74 28 73 | 69 7a 65 6d 65 6e 75 5e |TPbtst(s|izemenu^|
|00001a40| 5e 2e 65 6e 61 62 6c 65 | 46 6c 61 67 73 2c 20 32 |^.enable|Flags, 2|
|00001a50| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 20 7b 20 68 |) then b|egin { h|
|00001a60| 61 73 20 69 6e 69 74 69 | 61 6c 20 73 74 72 61 6e |as initi|al stran|
|00001a70| 67 65 20 6e 75 6d 62 65 | 72 20 7d 0d 09 09 09 44 |ge numbe|r }....D|
|00001a80| 65 6c 65 74 65 4d 65 6e | 75 49 74 65 6d 28 73 69 |eleteMen|uItem(si|
|00001a90| 7a 65 6d 65 6e 75 2c 20 | 31 29 3b 0d 09 09 09 44 |zemenu, |1);....D|
|00001aa0| 65 6c 65 74 65 4d 65 6e | 75 49 74 65 6d 28 73 69 |eleteMen|uItem(si|
|00001ab0| 7a 65 6d 65 6e 75 2c 20 | 31 29 3b 0d 09 09 65 6e |zemenu, |1);...en|
|00001ac0| 64 3b 0d 09 09 77 69 6e | 64 6f 77 69 6e 66 6f 5b |d;...win|dowinfo[|
|00001ad0| 77 74 5d 2e 69 74 65 6d | 73 5b 69 74 65 6d 5d 5e |wt].item|s[item]^|
|00001ae0| 2e 73 70 61 72 65 5f 64 | 61 74 61 20 3a 3d 20 50 |.spare_d|ata := P|
|00001af0| 74 72 28 6e 29 3b 0d 09 | 09 4e 75 6d 54 6f 53 74 |tr(n);..|.NumToSt|
|00001b00| 72 69 6e 67 28 6e 2c 20 | 74 6d 70 73 74 72 29 3b |ring(n, |tmpstr);|
|00001b10| 0d 09 09 69 66 20 6e 6f | 74 20 46 69 6e 64 4d 65 |...if no|t FindMe|
|00001b20| 6e 75 49 74 65 6d 28 73 | 69 7a 65 6d 65 6e 75 2c |nuItem(s|izemenu,|
|00001b30| 20 74 6d 70 73 74 72 2c | 20 69 29 20 74 68 65 6e | tmpstr,| i) then|
|00001b40| 20 62 65 67 69 6e 0d 09 | 09 09 49 6e 73 65 72 74 | begin..|..Insert|
|00001b50| 4d 65 6e 75 49 74 65 6d | 28 73 69 7a 65 6d 65 6e |MenuItem|(sizemen|
|00001b60| 75 2c 20 27 28 2d 3b 66 | 72 65 64 27 2c 20 30 29 |u, '(-;f|red', 0)|
|00001b70| 3b 0d 09 09 09 53 65 74 | 4d 65 6e 75 49 74 65 6d |;....Set|MenuItem|
|00001b80| 54 65 78 74 28 73 69 7a | 65 6d 65 6e 75 2c 20 31 |Text(siz|emenu, 1|
|00001b90| 2c 20 74 6d 70 73 74 72 | 29 3b 0d 09 09 09 69 20 |, tmpstr|);....i |
|00001ba0| 3a 3d 20 31 3b 0d 09 09 | 65 6e 64 3b 0d 09 09 53 |:= 1;...|end;...S|
|00001bb0| 65 74 43 6f 6e 74 72 6f | 6c 4d 61 78 69 6d 75 6d |etContro|lMaximum|
|00001bc0| 28 63 6f 6e 74 72 6f 6c | 2c 20 43 6f 75 6e 74 4d |(control|, CountM|
|00001bd0| 49 74 65 6d 73 28 73 69 | 7a 65 6d 65 6e 75 29 29 |Items(si|zemenu))|
|00001be0| 3b 0d 09 09 53 65 74 43 | 6f 6e 74 72 6f 6c 56 61 |;...SetC|ontrolVa|
|00001bf0| 6c 75 65 28 63 6f 6e 74 | 72 6f 6c 2c 20 69 29 3b |lue(cont|rol, i);|
|00001c00| 0d 09 09 44 69 73 70 6c | 61 79 46 6f 6e 74 50 72 |...Displ|ayFontPr|
|00001c10| 6f 63 28 77 69 6e 64 6f | 77 69 6e 66 6f 5b 77 74 |oc(windo|winfo[wt|
|00001c20| 5d 2e 77 69 6e 64 6f 77 | 2c 20 69 74 65 6d 20 2b |].window|, item +|
|00001c30| 20 31 29 3b 0d 09 09 57 | 68 61 74 43 6c 69 63 6b | 1);...W|hatClick|
|00001c40| 46 6f 6e 74 53 69 7a 65 | 20 3a 3d 20 6e 6f 45 72 |FontSize| := noEr|
|00001c50| 72 3b 0d 09 65 6e 64 3b | 0d 0d 09 66 75 6e 63 74 |r;..end;|...funct|
|00001c60| 69 6f 6e 20 57 68 61 74 | 46 6c 75 73 68 46 6f 6e |ion What|FlushFon|
|00001c70| 74 20 28 77 74 3a 20 57 | 69 6e 64 6f 77 54 79 70 |t (wt: W|indowTyp|
|00001c80| 65 3b 20 69 74 65 6d 3a | 20 69 6e 74 65 67 65 72 |e; item:| integer|
|00001c90| 29 3a 20 4f 53 45 72 72 | 3b 0d 09 09 76 61 72 0d |): OSErr|;...var.|
|00001ca0| 09 09 09 64 6c 67 3a 20 | 44 69 61 6c 6f 67 50 74 |...dlg: |DialogPt|
|00001cb0| 72 3b 0d 09 09 09 65 72 | 72 3a 20 4f 53 45 72 72 |r;....er|r: OSErr|
|00001cc0| 3b 0d 09 09 09 66 6f 6e | 74 5f 73 65 74 74 69 6e |;....fon|t_settin|
|00001cd0| 67 3a 20 49 43 46 6f 6e | 74 52 65 63 6f 72 64 3b |g: ICFon|tRecord;|
|00001ce0| 0d 09 09 09 6f 6c 64 5f | 66 6f 6e 74 5f 73 65 74 |....old_|font_set|
|00001cf0| 74 69 6e 67 3a 20 49 43 | 46 6f 6e 74 52 65 63 6f |ting: IC|FontReco|
|00001d00| 72 64 3b 0d 09 09 09 61 | 74 74 72 3a 20 6c 6f 6e |rd;....a|ttr: lon|
|00001d10| 67 69 6e 74 3b 0d 09 09 | 09 63 6f 75 6e 74 3a 20 |gint;...|.count: |
|00001d20| 6c 6f 6e 67 69 6e 74 3b | 0d 09 09 09 66 6f 6e 74 |longint;|....font|
|00001d30| 3a 20 69 6e 74 65 67 65 | 72 3b 0d 09 62 65 67 69 |: intege|r;..begi|
|00001d40| 6e 0d 09 09 64 6c 67 20 | 3a 3d 20 77 69 6e 64 6f |n...dlg |:= windo|
|00001d50| 77 69 6e 66 6f 5b 77 74 | 5d 2e 77 69 6e 64 6f 77 |winfo[wt|].window|
|00001d60| 3b 0d 09 09 47 65 74 43 | 75 72 72 65 6e 74 53 65 |;...GetC|urrentSe|
|00001d70| 74 74 69 6e 67 28 64 6c | 67 2c 20 69 74 65 6d 2c |tting(dl|g, item,|
|00001d80| 20 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 2c 20 66 | font_se|tting, f|
|00001d90| 6f 6e 74 29 3b 0d 09 09 | 28 2a 20 67 65 74 20 6f |ont);...|(* get o|
|00001da0| 6c 64 20 76 61 6c 75 65 | 73 20 2a 29 0d 09 09 63 |ld value|s *)...c|
|00001db0| 6f 75 6e 74 20 3a 3d 20 | 73 69 7a 65 6f 66 28 6f |ount := |sizeof(o|
|00001dc0| 6c 64 5f 66 6f 6e 74 5f | 73 65 74 74 69 6e 67 29 |ld_font_|setting)|
|00001dd0| 3b 0d 09 09 69 66 20 28 | 49 43 4d 61 70 45 72 72 |;...if (|ICMapErr|
|00001de0| 28 49 43 47 65 74 50 72 | 65 66 28 47 65 74 49 6e |(ICGetPr|ef(GetIn|
|00001df0| 73 74 61 6e 63 65 2c 20 | 77 69 6e 64 6f 77 69 6e |stance, |windowin|
|00001e00| 66 6f 5b 77 74 5d 2e 69 | 74 65 6d 73 5b 69 74 65 |fo[wt].i|tems[ite|
|00001e10| 6d 5d 5e 2e 6b 65 79 2c | 20 61 74 74 72 2c 20 40 |m]^.key,| attr, @|
|00001e20| 6f 6c 64 5f 66 6f 6e 74 | 5f 73 65 74 74 69 6e 67 |old_font|_setting|
|00001e30| 2c 20 63 6f 75 6e 74 29 | 29 20 3c 3e 20 6e 6f 45 |, count)|) <> noE|
|00001e40| 72 72 29 20 7c 20 28 63 | 6f 75 6e 74 20 3c 3e 20 |rr) | (c|ount <> |
|00001e50| 73 69 7a 65 6f 66 28 6f | 6c 64 5f 66 6f 6e 74 5f |sizeof(o|ld_font_|
|00001e60| 73 65 74 74 69 6e 67 29 | 29 20 74 68 65 6e 20 62 |setting)|) then b|
|00001e70| 65 67 69 6e 0d 09 09 09 | 6f 6c 64 5f 66 6f 6e 74 |egin....|old_font|
|00001e80| 5f 73 65 74 74 69 6e 67 | 2e 66 6f 6e 74 20 3a 3d |_setting|.font :=|
|00001e90| 20 27 27 3b 0d 09 09 65 | 6e 64 3b 20 28 2a 20 69 | '';...e|nd; (* i|
|00001ea0| 66 20 2a 29 0d 09 09 28 | 2a 20 77 72 69 74 65 20 |f *)...(|* write |
|00001eb0| 69 74 20 62 61 63 6b 20 | 69 66 20 63 68 61 6e 67 |it back |if chang|
|00001ec0| 65 64 20 2a 29 0d 09 09 | 65 72 72 20 3a 3d 20 6e |ed *)...|err := n|
|00001ed0| 6f 45 72 72 3b 0d 09 09 | 69 66 20 28 6f 6c 64 5f |oErr;...|if (old_|
|00001ee0| 66 6f 6e 74 5f 73 65 74 | 74 69 6e 67 2e 73 69 7a |font_set|ting.siz|
|00001ef0| 65 20 3c 3e 20 66 6f 6e | 74 5f 73 65 74 74 69 6e |e <> fon|t_settin|
|00001f00| 67 2e 73 69 7a 65 29 20 | 6f 72 20 28 6f 6c 64 5f |g.size) |or (old_|
|00001f10| 66 6f 6e 74 5f 73 65 74 | 74 69 6e 67 2e 66 61 63 |font_set|ting.fac|
|00001f20| 65 20 3c 3e 20 66 6f 6e | 74 5f 73 65 74 74 69 6e |e <> fon|t_settin|
|00001f30| 67 2e 66 61 63 65 29 20 | 6f 72 20 28 49 55 45 71 |g.face) |or (IUEq|
|00001f40| 75 61 6c 53 74 72 69 6e | 67 28 6f 6c 64 5f 66 6f |ualStrin|g(old_fo|
|00001f50| 6e 74 5f 73 65 74 74 69 | 6e 67 2e 66 6f 6e 74 2c |nt_setti|ng.font,|
|00001f60| 20 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 2e 66 6f | font_se|tting.fo|
|00001f70| 6e 74 29 20 3c 3e 20 30 | 29 20 74 68 65 6e 20 62 |nt) <> 0|) then b|
|00001f80| 65 67 69 6e 0d 09 09 09 | 69 66 20 6e 6f 74 20 49 |egin....|if not I|
|00001f90| 73 4c 6f 63 6b 65 64 28 | 77 74 2c 20 69 74 65 6d |sLocked(|wt, item|
|00001fa0| 29 20 74 68 65 6e 20 62 | 65 67 69 6e 0d 09 09 09 |) then b|egin....|
|00001fb0| 09 65 72 72 20 3a 3d 20 | 49 43 4d 61 70 45 72 72 |.err := |ICMapErr|
|00001fc0| 28 49 43 53 65 74 50 72 | 65 66 28 47 65 74 49 6e |(ICSetPr|ef(GetIn|
|00001fd0| 73 74 61 6e 63 65 2c 20 | 77 69 6e 64 6f 77 69 6e |stance, |windowin|
|00001fe0| 66 6f 5b 77 74 5d 2e 69 | 74 65 6d 73 5b 69 74 65 |fo[wt].i|tems[ite|
|00001ff0| 6d 5d 5e 2e 6b 65 79 2c | 20 49 43 61 74 74 72 5f |m]^.key,| ICattr_|
|00002000| 6e 6f 5f 63 68 61 6e 67 | 65 2c 20 40 66 6f 6e 74 |no_chang|e, @font|
|00002010| 5f 73 65 74 74 69 6e 67 | 2c 20 73 69 7a 65 6f 66 |_setting|, sizeof|
|00002020| 28 66 6f 6e 74 5f 73 65 | 74 74 69 6e 67 29 29 29 |(font_se|tting)))|
|00002030| 3b 0d 09 09 09 09 69 66 | 20 65 72 72 20 3d 20 6e |;.....if| err = n|
|00002040| 6f 45 72 72 20 74 68 65 | 6e 20 62 65 67 69 6e 0d |oErr the|n begin.|
|00002050| 09 09 09 09 09 44 69 72 | 74 79 44 6f 63 75 6d 65 |.....Dir|tyDocume|
|00002060| 6e 74 3b 0d 09 09 09 09 | 65 6e 64 3b 20 28 2a 20 |nt;.....|end; (* |
|00002070| 69 66 20 2a 29 0d 09 09 | 09 65 6e 64 3b 20 28 2a |if *)...|.end; (*|
|00002080| 20 69 66 20 2a 29 0d 09 | 09 65 6e 64 3b 20 28 2a | if *)..|.end; (*|
|00002090| 20 69 66 20 2a 29 0d 09 | 09 57 68 61 74 46 6c 75 | if *)..|.WhatFlu|
|000020a0| 73 68 46 6f 6e 74 20 3a | 3d 20 65 72 72 3b 0d 09 |shFont :|= err;..|
|000020b0| 65 6e 64 3b 20 28 2a 20 | 57 68 61 74 46 6c 75 73 |end; (* |WhatFlus|
|000020c0| 68 46 6f 6e 74 20 2a 29 | 0d 0d 65 6e 64 2e 20 28 |hFont *)|..end. (|
|000020d0| 2a 20 49 43 46 6f 6e 74 | 57 68 61 74 73 20 2a 29 |* ICFont|Whats *)|
|000020e0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002110| 69 66 20 2a 29 0d 09 09 | 65 6e 64 3b 20 28 2a 20 |if *)...|end; (* |
|00002120| 69 66 20 2a 29 0d 09 09 | 69 66 20 65 72 72 20 3d |if *)...|if err =|
|00002130| 0d 49 43 46 6f 6e 74 57 | 68 61 74 73 2e 70 02 00 |.ICFontW|hats.p..|
|00002140| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 68 00 00 |..TEXTCW|IE...h..|
|00002150| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 68 00 00 |..TEXTCW|IE...h..|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 aa 8e 8c 46 00 00 | 20 61 00 00 01 9a 70 6f |.....F..| a....po|
|00002180| 73 69 74 69 6f 6e 20 3a | 3d 20 77 69 6e 64 6f 77 |sition :|= window|
|00002190| 5f 70 6f 73 69 74 69 6f | 6e 73 5b 77 74 5d 3b 0d |_positio|ns[wt];.|
|000021a0| 09 09 09 65 6e 64 3b 20 | 28 2a 20 66 6f 72 20 2a |...end; |(* for *|
|000021b0| 29 0d 09 09 65 6e 64 0d | 09 09 65 6c 73 65 20 62 |)...end.|..else b|
|000021c0| 65 67 69 6e 0d 09 09 09 | 57 69 6e 64 6f 77 73 52 |egin....|WindowsR|
|000021d0| 65 73 65 74 50 6f 73 69 | 74 69 6f 6e 73 3b 0d 09 |esetPosi|tions;..|
|000021e0| 09 65 6e 64 3b 20 28 2a | 20 69 66 20 2a 29 0d 09 |.end; (*| if *)..|
|000021f0| 65 6e 64 3b 20 28 2a 20 | 57 69 6e 64 6f 77 73 52 |end; (* |WindowsR|
|00002200| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 03 | 00 02 00 3e 00 0a 01 d7 |........|...>....|
|00002230| 02 80 00 3e 00 0a 01 d7 | 02 80 ae 0e e4 54 00 00 |...>....|.....T..|
|00002240| 00 38 00 00 01 08 00 00 | 00 00 01 00 00 00 00 04 |.8......|........|
|00002250| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00002260| 00 00 00 46 00 65 49 d0 | 11 a2 00 00 00 1c 00 46 |...F.eI.|.......F|
|00002270| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002280| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002290| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+